package com.hrm.service;

import java.util.List;

import com.hrm.entity.OperList;
import com.hrm.entity.Role;
import com.hrm.entity.User;
import com.hrm.util.Page;

public interface UserService {
	
	public User login(String username,String password);

	public List<OperList> getPermission(long userId);
	public List<User> getUsers(Page page);
	public List<User> getUsersByName(String username,Page page);
	public int getUserCounts();
	public int getUserByNameCounts(String username);
	public List<Role> getRolesByUserId(long userId);
	public int addUser(User user,String[] roleids);
	public int updateUser(User user,String[] roleids);
	public int deleteUserById(String userids);
	public int resetPwdToDefault(String userids);
	public User getUserById(long id);
}
